<?php $__env->startSection('content'); ?>

    <div class="page-index" id="home" data-log="首页">
        <div class="index-header">
            <div class="search_bar">
                <a href="/search">
                    <span class="icon icon-search"></span>
                    <span class="text">搜索商品名称</span>
                </a>
            </div>
            <div class="search_bottom"></div>
        </div>

        <!--焦点图-->
        <section class="slider">
            <div class="flexslider">
                <ul class="slides">
                    <li>
                        <a href=""><img src="http://i8.mifile.cn/v1/a1/T1_1W_BgVv1RXrhCrK!720x360.jpg"/></a>
                    </li>
                    <li>
                        <img src="http://i8.mifile.cn/v1/a1/T12LdgBXZv1RXrhCrK!720x360.jpg"/>
                    </li>
                    <li>
                        <img src="http://i8.mifile.cn/v1/a1/T1zgZvBgK_1RXrhCrK!720x360.jpg"/>
                    </li>
                    <li>
                        <img src="http://i8.mifile.cn/v1/a1/T1m4bgBsdv1RXrhCrK!720x360.jpg"/>
                    </li>
                    <li>
                        <img src="http://i8.mifile.cn/v1/a1/T17XD_Bjxv1RXrhCrK!720x360.jpg"/>
                    </li>
                </ul>
            </div>
        </section>

        <!--推荐商品-->
        <div class="list">
            <div class="section">
                <div class="mcells_auto_fill">
                    <div class="body">
                        <div>
                            <div class="items">
                                <img src="http://i8.mifile.cn/v1/a1/T1lJdgB7hv1RXrhCrK.jpg">
                            </div>
                        </div>
                        <div>
                            <div class="items">
                                <img src="http://i8.mifile.cn/v1/a1/T1a9hgB7_v1RXrhCrK.jpg">
                            </div>
                        </div>
                        <div>
                            <div class="items">
                                <img src="http://i8.mifile.cn/v1/a1/T1F6WgBQYv1RXrhCrK.jpg">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <?php foreach($products as $product): ?>
            <div class="section" onclick="location.href='/product/<?php echo e($product->id); ?>'">
                <div>

                    <div class="item" >
                        <div class="img">
                            <img class="ico" src="<?php echo e($product->thumb); ?>">
                            <img class="tag " src="http://c1.mifile.cn/f/i/f/mishop/iic/xp.png">
                        </div>
                        <div class="info">
                            <div class="name"><p><?php echo e($product->name); ?></p></div>
                            <div class="brief"><p><?php echo e($product->desc); ?></p></div>
                            <div class="price"><p><?php echo e($product->price); ?>元 起</p></div>
                        </div>
                    </div>

                </div>
            </div>
            <?php endforeach; ?>
            <?php echo $__env->make('home.layouts._footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
<script src="/assets/mi/js/jquery.min.js"></script>
<script src="/assets/mi/js/common.js"></script>

<script defer src="/assets/mi/flexslider/jquery.flexslider.js"></script>
<script type="text/javascript">
    $(window).load(function () {
        $('.flexslider').flexslider({
            animation: "slide",
            directionNav: false
        });
    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('home.layouts.application', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>